import request from '@/utils/request'

export default {
  getNotReadTotal: function () {
    return request({
      url: '/userNotice/getNotReadTotal',
      method: 'get'
    })
  },
  getNotReadAndDevice: function () {
    return request({
      url: '/userNotice/getNotReadAndDevice',
      method: 'get'
    })
  },
  getNotReadAndStore:function () {
    return request({
      url: '/userNotice/getNotReadAndStore',
      method: 'get'
    })
  },
  readNotice: function (id) {
    return request({
      url: '/userNotice/readNotice/'+id,
      method: 'get'
    })
  },
  readNoticeBy: function (id) {
    return request({
      url: '/userNotice/readNoticeBy/'+id,
      method: 'get'
    })
  },
  readList: function (data) {
    return request({
      url: '/userNotice/readListNotice',
      method: 'post',
      data
    })
  },
  getNoticeType: function () {
    return request({
      url: '/sysRole/getNoticeType',
      method: 'get'
    })
  },
  getList: function (data) {
    return request({
      url: '/userNotice/listByPage',
      method: 'post',
      data
    })
  },
  removeById:function (id) {
    return request({
      url: '/userNotice/removeById/'+id,
      method: 'get'
    })
  },
  clear: function (data) {
    return request({
      url: '/userNotice/remove',
      method: 'post',
      data
    })
  },
}
